<template>
  <div>
    <page-list :x-uri="uri" :checkbox-item="false">
      <!-- 自定义tab -->
      <template v-slot:page-tabs>
        <tabs :tabs="tabs" />
        <div class="page-header"><el-page-header content="试题引用详情" @back="goBack" /></div>
        <el-divider />
      </template>
    </page-list>
  </div>
</template>

<script>
import PageList from '@public/template/page_list.vue';
import Tabs from './tabs';

export default {
  components: {
    PageList,
    Tabs
  },
  inject: ['reload'],
  data() {
    return {
      uri: '/exam/admin/question/topic/' + this.$route.params.id + '/paper/list',
      tabs: [
        {
          title: '引用详情',
          uri: '/exam/question/topic/' + this.$route.params.id + '/paper/list',
          meta: {
            permission: 'exam.paper.list'
          }
        }
      ]
    };
  },
  methods: {
    // 返回上一页
    goBack() {
      this.$router.go(-1);
    }
  }
};
</script>
<style scoped>
.page-header {
  padding: 4px;
}
</style>
